package org.shiwen.week8.friday;

public class Car extends Transport {
    private String fuel;

    public Car(String name, int speed, String fuel) {
        super(name, speed);
        this.fuel = fuel;
    }

    public Car() {
    }

    @Override
    public void moveWay() {
        System.out.println(super.getName()+"的燃料类型为"+fuel);
    }

    public String getFuel() {
        return fuel;
    }

    public void setFuel(String fuel) {
        this.fuel = fuel;
    }


}
